import 'package:flutter/cupertino.dart';

abstract class BaseModel extends ChangeNotifier{

  ViewModelState _viewModelState=ViewModelState.busy;

  ViewModelState get viewModelState => _viewModelState;

  set viewModelState(ViewModelState value) {
    _viewModelState = value;
    notifyListeners();
  }
}


enum ViewModelState {
  idle,
  busy,
  error,
  unkonwn
}